<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Qwt User&#39;s Guide: QwtSpline Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Qwt User&#39;s Guide
   &#160;<span id="projectnumber">6.1.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.16 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_qwt_spline.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_qwt_spline-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QwtSpline Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>A class for spline interpolation.  
 <a href="class_qwt_spline.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qwt__spline_8h_source.html">qwt_spline.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a2bd2bda128f82acd596348eb8d64231c"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a> { <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231ca506b78ec81ab6d56a4bbce891490c857">Natural</a>, 
<a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb">Periodic</a>
 }</td></tr>
<tr class="memdesc:a2bd2bda128f82acd596348eb8d64231c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Spline type.  <a href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">More...</a><br /></td></tr>
<tr class="separator:a2bd2bda128f82acd596348eb8d64231c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memItemLeft" align="right" valign="top"><a id="a5d1e0ba35c637a88c66d9e4cbaf36e93"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5d1e0ba35c637a88c66d9e4cbaf36e93">QwtSpline</a> ()</td></tr>
<tr class="memdesc:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="mdescLeft">&#160;</td><td class="mdescRight">Constructor. <br /></td></tr>
<tr class="separator:a5d1e0ba35c637a88c66d9e4cbaf36e93"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a2e42391f76d0b3091bf7754239f3ff0d">QwtSpline</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
<tr class="separator:a2e42391f76d0b3091bf7754239f3ff0d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a90805882826469c94fdc871f18261bb6"><td class="memItemLeft" align="right" valign="top"><a id="a90805882826469c94fdc871f18261bb6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a90805882826469c94fdc871f18261bb6">~QwtSpline</a> ()</td></tr>
<tr class="memdesc:a90805882826469c94fdc871f18261bb6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor. <br /></td></tr>
<tr class="separator:a90805882826469c94fdc871f18261bb6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a597c34477dd4b5298db2d445b4e596"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a8a597c34477dd4b5298db2d445b4e596">operator=</a> (const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;)</td></tr>
<tr class="separator:a8a597c34477dd4b5298db2d445b4e596"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a222953661f01658a16042d587196aff8"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a222953661f01658a16042d587196aff8">setSplineType</a> (<a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>)</td></tr>
<tr class="separator:a222953661f01658a16042d587196aff8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType</a> () const</td></tr>
<tr class="separator:a1ba958ef9d8ea93db822fde1a1176f51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a> (const QPolygonF &amp;<a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>)</td></tr>
<tr class="memdesc:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the spline coefficients.  <a href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">More...</a><br /></td></tr>
<tr class="separator:a6ed13410b1d5f6b33ba0e3c2b07932cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5137512588444236e2a2ab1cab207f41"><td class="memItemLeft" align="right" valign="top">QPolygonF&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a> () const</td></tr>
<tr class="separator:a5137512588444236e2a2ab1cab207f41"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc52fd49e7f00d57a0336059fae299c0"><td class="memItemLeft" align="right" valign="top"><a id="afc52fd49e7f00d57a0336059fae299c0"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#afc52fd49e7f00d57a0336059fae299c0">reset</a> ()</td></tr>
<tr class="memdesc:afc52fd49e7f00d57a0336059fae299c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Free allocated memory and set size to 0. <br /></td></tr>
<tr class="separator:afc52fd49e7f00d57a0336059fae299c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a50298a899c2199373b0d73fb50bc406d"><td class="memItemLeft" align="right" valign="top"><a id="a50298a899c2199373b0d73fb50bc406d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a50298a899c2199373b0d73fb50bc406d">isValid</a> () const</td></tr>
<tr class="memdesc:a50298a899c2199373b0d73fb50bc406d"><td class="mdescLeft">&#160;</td><td class="mdescRight">True if valid. <br /></td></tr>
<tr class="separator:a50298a899c2199373b0d73fb50bc406d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a> (double x) const</td></tr>
<tr class="separator:a7c7af79ee4d77dd8e0ff08a6fd234e4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b77df69a233a6f918eb35014372b828"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1b77df69a233a6f918eb35014372b828">coefficientsA</a> () const</td></tr>
<tr class="separator:a1b77df69a233a6f918eb35014372b828"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#aa91b0b8b1b6ed6144c15f62a8aaf51a7">coefficientsB</a> () const</td></tr>
<tr class="separator:aa91b0b8b1b6ed6144c15f62a8aaf51a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a77caab9b2b1c42653fa8706171f0dee9"><td class="memItemLeft" align="right" valign="top">const QVector&lt; double &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a77caab9b2b1c42653fa8706171f0dee9">coefficientsC</a> () const</td></tr>
<tr class="separator:a77caab9b2b1c42653fa8706171f0dee9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a1cdf09e841dd6a721eb788914273c484"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">buildNaturalSpline</a> (const QPolygonF &amp;)</td></tr>
<tr class="memdesc:a1cdf09e841dd6a721eb788914273c484"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the coefficients for a natural spline.  <a href="class_qwt_spline.html#a1cdf09e841dd6a721eb788914273c484">More...</a><br /></td></tr>
<tr class="separator:a1cdf09e841dd6a721eb788914273c484"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8184717f8c018e69fabd1e33ac68ef19"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">buildPeriodicSpline</a> (const QPolygonF &amp;)</td></tr>
<tr class="memdesc:a8184717f8c018e69fabd1e33ac68ef19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines the coefficients for a periodic spline.  <a href="class_qwt_spline.html#a8184717f8c018e69fabd1e33ac68ef19">More...</a><br /></td></tr>
<tr class="separator:a8184717f8c018e69fabd1e33ac68ef19"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A class for spline interpolation. </p>
<p>The <a class="el" href="class_qwt_spline.html" title="A class for spline interpolation.">QwtSpline</a> class is used for cubical spline interpolation. Two types of splines, natural and periodic, are supported.</p>
<dl class="section user"><dt>Usage:</dt><dd><ol>
<li>
First call <a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf" title="Calculate the spline coefficients.">setPoints()</a> to determine the spline coefficients for a tabulated function y(x). </li>
<li>
After the coefficients have been set up, the interpolated function value for an argument x can be determined by calling <a class="el" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">QwtSpline::value()</a>. </li>
</ol>
</dd></dl>
<dl class="section user"><dt>Example:</dt><dd><div class="fragment"><div class="line"><span class="preprocessor">#include &lt;qwt_spline.h&gt;</span></div>
<div class="line"> </div>
<div class="line">QPolygonF interpolate(<span class="keyword">const</span> QPolygonF&amp; <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>, <span class="keywordtype">int</span> numValues)</div>
<div class="line">{</div>
<div class="line">    <a class="code" href="class_qwt_spline.html">QwtSpline</a> spline;</div>
<div class="line">    <span class="keywordflow">if</span> ( !spline.<a class="code" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">setPoints</a>(<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>) )</div>
<div class="line">        <span class="keywordflow">return</span> <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>;</div>
<div class="line"> </div>
<div class="line">    QPolygonF interpolatedPoints(numValues);</div>
<div class="line"> </div>
<div class="line">    <span class="keyword">const</span> <span class="keywordtype">double</span> delta =</div>
<div class="line">        (<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[numPoints - 1].x() - <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[0].x()) / (<a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>.size() - 1);</div>
<div class="line">    <span class="keywordflow">for</span>(i = 0; i &lt; <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>.size(); i++)  / interpolate</div>
<div class="line">    {</div>
<div class="line">        <span class="keyword">const</span> <span class="keywordtype">double</span> x = <a class="code" href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">points</a>[0].x() + i * delta;</div>
<div class="line">        interpolatedPoints[i].setX(x);</div>
<div class="line">        interpolatedPoints[i].setY(spline.<a class="code" href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">value</a>(x));</div>
<div class="line">    }</div>
<div class="line">    <span class="keywordflow">return</span> interpolatedPoints;</div>
<div class="line">}</div>
</div><!-- fragment --> </dd></dl>
</div><h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a2bd2bda128f82acd596348eb8d64231c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2bd2bda128f82acd596348eb8d64231c">&#9670;&nbsp;</a></span>SplineType</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Spline type. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca506b78ec81ab6d56a4bbce891490c857"></a>Natural&#160;</td><td class="fielddoc"><p>A natural spline. </p>
</td></tr>
<tr><td class="fieldname"><a id="a2bd2bda128f82acd596348eb8d64231ca500c12cdbdef35c62e9fab86c5727acb"></a>Periodic&#160;</td><td class="fielddoc"><p>A periodic spline. </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a2e42391f76d0b3091bf7754239f3ff0d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e42391f76d0b3091bf7754239f3ff0d">&#9670;&nbsp;</a></span>QwtSpline()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QwtSpline::QwtSpline </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a1cdf09e841dd6a721eb788914273c484"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1cdf09e841dd6a721eb788914273c484">&#9670;&nbsp;</a></span>buildNaturalSpline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtSpline::buildNaturalSpline </td>
          <td>(</td>
          <td class="paramtype">const QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines the coefficients for a natural spline. </p>
<dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>

</div>
</div>
<a id="a8184717f8c018e69fabd1e33ac68ef19"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8184717f8c018e69fabd1e33ac68ef19">&#9670;&nbsp;</a></span>buildPeriodicSpline()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtSpline::buildPeriodicSpline </td>
          <td>(</td>
          <td class="paramtype">const QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Determines the coefficients for a periodic spline. </p>
<dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>

</div>
</div>
<a id="a1b77df69a233a6f918eb35014372b828"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1b77df69a233a6f918eb35014372b828">&#9670;&nbsp;</a></span>coefficientsA()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsA </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>A coefficients </dd></dl>

</div>
</div>
<a id="aa91b0b8b1b6ed6144c15f62a8aaf51a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa91b0b8b1b6ed6144c15f62a8aaf51a7">&#9670;&nbsp;</a></span>coefficientsB()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsB </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>B coefficients </dd></dl>

</div>
</div>
<a id="a77caab9b2b1c42653fa8706171f0dee9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a77caab9b2b1c42653fa8706171f0dee9">&#9670;&nbsp;</a></span>coefficientsC()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const QVector&lt; double &gt; &amp; QwtSpline::coefficientsC </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>C coefficients </dd></dl>

</div>
</div>
<a id="a8a597c34477dd4b5298db2d445b4e596"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8a597c34477dd4b5298db2d445b4e596">&#9670;&nbsp;</a></span>operator=()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp; QwtSpline::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_qwt_spline.html">QwtSpline</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Assignment operator </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td>Spline used for initialization </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>*this </dd></dl>

</div>
</div>
<a id="a5137512588444236e2a2ab1cab207f41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5137512588444236e2a2ab1cab207f41">&#9670;&nbsp;</a></span>points()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QPolygonF QwtSpline::points </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>Points, that have been by <a class="el" href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf" title="Calculate the spline coefficients.">setPoints()</a> </dd></dl>

</div>
</div>
<a id="a6ed13410b1d5f6b33ba0e3c2b07932cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6ed13410b1d5f6b33ba0e3c2b07932cf">&#9670;&nbsp;</a></span>setPoints()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool QwtSpline::setPoints </td>
          <td>(</td>
          <td class="paramtype">const QPolygonF &amp;&#160;</td>
          <td class="paramname"><em>points</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Calculate the spline coefficients. </p>
<p>Depending on the value of <em>periodic</em>, this function will determine the coefficients for a natural or a periodic spline and store them internally.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">points</td><td>Points </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true if successful </dd></dl>
<dl class="section warning"><dt>Warning</dt><dd>The sequence of x (but not y) values has to be strictly monotone increasing, which means <code>points[i].x() &lt; points[i+1].x()</code>. If this is not the case, the function will return false </dd></dl>

</div>
</div>
<a id="a222953661f01658a16042d587196aff8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a222953661f01658a16042d587196aff8">&#9670;&nbsp;</a></span>setSplineType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void QwtSpline::setSplineType </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">SplineType</a>&#160;</td>
          <td class="paramname"><em>splineType</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Select the algorithm used for calculating the spline</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">splineType</td><td>Spline type </td></tr>
  </table>
  </dd>
</dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a1ba958ef9d8ea93db822fde1a1176f51">splineType()</a> </dd></dl>

</div>
</div>
<a id="a1ba958ef9d8ea93db822fde1a1176f51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1ba958ef9d8ea93db822fde1a1176f51">&#9670;&nbsp;</a></span>splineType()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_qwt_spline.html#a2bd2bda128f82acd596348eb8d64231c">QwtSpline::SplineType</a> QwtSpline::splineType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="section return"><dt>Returns</dt><dd>the spline type </dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_qwt_spline.html#a222953661f01658a16042d587196aff8">setSplineType()</a> </dd></dl>

</div>
</div>
<a id="a7c7af79ee4d77dd8e0ff08a6fd234e4f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7c7af79ee4d77dd8e0ff08a6fd234e4f">&#9670;&nbsp;</a></span>value()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double QwtSpline::value </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>x</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculate the interpolated function value corresponding to a given argument x.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">x</td><td>Coordinate </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Interpolated coordinate </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="aclass_qwt_spline_html_a5137512588444236e2a2ab1cab207f41"><div class="ttname"><a href="class_qwt_spline.html#a5137512588444236e2a2ab1cab207f41">QwtSpline::points</a></div><div class="ttdeci">QPolygonF points() const</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:158</div></div>
<div class="ttc" id="aclass_qwt_spline_html_a7c7af79ee4d77dd8e0ff08a6fd234e4f"><div class="ttname"><a href="class_qwt_spline.html#a7c7af79ee4d77dd8e0ff08a6fd234e4f">QwtSpline::value</a></div><div class="ttdeci">double value(double x) const</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:204</div></div>
<div class="ttc" id="aclass_qwt_spline_html_a6ed13410b1d5f6b33ba0e3c2b07932cf"><div class="ttname"><a href="class_qwt_spline.html#a6ed13410b1d5f6b33ba0e3c2b07932cf">QwtSpline::setPoints</a></div><div class="ttdeci">bool setPoints(const QPolygonF &amp;points)</div><div class="ttdoc">Calculate the spline coefficients.</div><div class="ttdef"><b>Definition:</b> qwt_spline.cpp:128</div></div>
<div class="ttc" id="aclass_qwt_spline_html"><div class="ttname"><a href="class_qwt_spline.html">QwtSpline</a></div><div class="ttdoc">A class for spline interpolation.</div><div class="ttdef"><b>Definition:</b> qwt_spline.h:57</div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_qwt_spline.html">QwtSpline</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.16 </li>
  </ul>
</div>
</body>
</html>
